#ifndef _SETTINGSDIALOG_H_
#define _SETTINGSDIALOG_H_

#include <QSettings>
#include <QVariant>

#include "ui_settingsdialogbase.h"

#define KEY_DEBUG		"Global/Debug"
#define KEY_FONT		"Global/Font"
#define KEY_AUTOCONNECT		"Global/Autoconnect"
#define KEY_NEEDLINE		"Global/NeedLine"
#define KEY_LINE		"Global/Line"

class SettingsDialog : public QDialog, private Ui::SettingsDialogBase
{
	Q_OBJECT

public:
	SettingsDialog(QWidget *parent = 0);
	
	bool debugMode();
	bool autoconnect();
	bool needLine();
	QString line();
	QFont font();

private:
	QSettings *m_Settings;
	
private slots:
	void updateConfig();
	void reloadConfig();
	void setLineEnabled(int);

};

#endif // _SETTINGSDIALOG_H_

// kate: space-indent off; tab-indents on; indent-width 4; indent-mode cstyle;
